<?php

declare(strict_types=1);

use Yansongda\Pay\Pay;

return [
    'alipay' => [
        'default' => [
            // 必填-支付宝分配的 app_id
            'app_id' => '2021004137698125',
            // 必填-应用私钥 字符串或路径
            'app_secret_cert' => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXCGLaCHZin2EAx/XwXPqkTSQ5G8wxcKudXSmNhImQLKH9v1vQKm2qsMP/dLmehLkDCklUEbmwgnKZa9TXXhSwJUrQztE2GTOvbyxo2Hq593NQws+PprQKLvyiV4XEhSxo/byuHUP0/35QMPxyqvqPhFbFNih8Z6TOiNtMAXuWqoUaCuyuhgsuZLFlVCpUIszjFzdAzMCplP9nId+xHL03DbD+yJk454GLY8bvKIs2rCZmzBzFjDjrp8myCi/28kMG20O/vXSzoKdyDc7QcQjQmV1gslT4npVAvJIBXh3gYOb2ybmB3CJUIbpd/rgkd/hOVkD+S5+YKPWgRnIQZee7AgMBAAECggEAMT7pxIAH4eZn4bJRjdszWolQq1JWBTTgsEHlP6Ccnib/dtaDYF/FPGfAsLXlpDtQfB5JhKD29AfEyCOx1bt2cWzndShKbSJQiP5t843KjoKR1h5/QS6w+7UQaPqywj5OGbnKYNdoBiWckRc36Ue4xTz4cftTviSpRzK2lpTRMHHN6qAm7y1pAIiAWMBV2btupxg5DWmQqAGouBcaFXGHxqlBmcXp2gO4uxwVDClb80LABtUnl11iFKFcDcbKtbrduU/UmHQY6SP5rqaSxZrZaorfLlo2/Og5Ze1zLBs9wFwuwJVOgZKjciI8Z2KyvfcWuIaTADhPu+957aDeadyuKQKBgQDg7GnFu3KSUE7SjZZB4Y+et4y5Bhn/vQW6O3/BRNIa7DaSqPGAOrLs5EjRupm5W09MgLf7LKs1/DeKP+HmgdSXMD0ssRcTmn5348SmzvCabZXFd22X4Gkgsviu1FBzO/z9lM/gPVrLENCjKmBlgVcmrvr9+MoDDghZZDfDcM6+3QKBgQCr5nGVv5HuOVfDAp84V1dP09ZM8rQFzVL3YCG0FQ7Z7M8i/sN9rGxZua0u+EUR2LHbi4UV1q8V6VLK+ZrSVZoHppVMQcKZiHDZL0gSsP0kdzV1FS6t8D23wnR1gTIcgSuCM7h5EeNcW2+uWHGTehMqWcwYR4lBWFYK54FRZgN7dwKBgQCKwm7SlLyu9SpbjQvIow4GXbhMIS6C7isNZE2BfyKbh2R3gBBVCmF98avW72aMyn8WdEaMh1csm+fru1Ny8F+l0hW7b5kL+ADTl8mnGv2mV7rRMseCrehNSvxOZx8mqDiAfIDuFwvfQQVl0+vaUzvf2o1vhz+hONP/yer5AKwbZQKBgEXOoVXEpAhv9PnWeL4yidx7FE3PSdgJV6XpvgYZfxx0lHGLr+u7N40AYBnw7Gug6ilT8Um7EwL864hN8Nd1t8VfmsWK9vHOfLVWBBjDEynZ1zWi0oAETavwJccKHkWBFyAazNEtuHzrDOFqPUU8j8flC4LYmh6VNuvas6NQoB1lAoGAY5VPuU/9r/Eo4ZC5MhU5LGF3kdnTIPCwmj0Z2rhqPnKxgZqr5LA+zPOiAii184ovm4/m1H0vY4SdfpxcY8pBfVGrjDXLAUrmBN9QYiPmyt3OBWQqLoku+UC0KFh2jnGCNHh+jNTD9ps3tTMEuMrLM4LiNP7ysEFK4soJBQtVk94=',
            // 必填-应用公钥证书 路径
            'app_public_cert_path' => app_path('Certs/appCertPublicKey_2021004137698125.crt'),
            // 必填-支付宝公钥证书 路径
            'alipay_public_cert_path' => app_path('Certs/alipayCertPublicKey_RSA2.crt'),
            // 必填-支付宝根证书 路径
            'alipay_root_cert_path' => app_path('Certs/alipayRootCert.crt'),
            'return_url' => '',
            'notify_url' => '',
            // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
            'service_provider_id' => '',
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ],
    ],
    'wechat' => [
        'default' => [
            // 必填-商户号，服务商模式下为服务商商户号
            'mch_id' => '1668876635',
            // 选填-v2商户私钥
            'mch_secret_key_v2' => 'abcdabcdabcdabcdabcdabcdabcdabcd',
            // 必填-商户秘钥
            'mch_secret_key' => 'abcdabcdabcdabcdabcdabcdabcdabcd',
            // 必填-商户私钥 字符串或路径
            'mch_secret_cert' => app_path('Certs/apiclient_key.pem'),
            // 必填-商户公钥证书路径
            'mch_public_cert_path' => app_path('Certs/apiclient_cert.pem'),
            // 必填
            'notify_url' => 'https://www.huashimu.com/order/notify',
            // 选填-公众号 的 app_id
            'mp_app_id' => 'wx6d1a7302df6cf4c0',
            // 选填-小程序 的 app_id
            'mini_app_id' => 'wx6981819026cf4ad7',
            // 选填-app 的 app_id
            'app_id' => 'wxa381a302dc72a610',
            // 选填-合单 app_id
            'combine_app_id' => '',
            // 选填-合单商户号
            'combine_mch_id' => '',
            // 选填-服务商模式下，子公众号 的 app_id
            'sub_mp_app_id' => '',
            // 选填-服务商模式下，子 app 的 app_id
            'sub_app_id' => '',
            // 选填-服务商模式下，子小程序 的 app_id
            'sub_mini_app_id' => '',
            // 选填-服务商模式下，子商户id
            'sub_mch_id' => '',
            // 选填-微信公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
            'wechat_public_cert_path' => [
                '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatPublicKey.crt',
            ],
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ],
    ],
    'unipay' => [
        'default' => [
            // 必填-商户号
            'mch_id' => '',
            // 必填-商户公私钥
            'mch_cert_path' => '',
            // 必填-商户公私钥密码
            'mch_cert_password' => '000000',
            // 必填-银联公钥证书路径
            'unipay_public_cert_path' => '',
            // 必填
            'return_url' => '',
            // 必填
            'notify_url' => '',
        ],
    ],
    'http' => [ // optional
        'timeout' => 5.0,
        'connect_timeout' => 5.0,
        // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
    ],
    // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
    'logger' => [
        'enable' => false,
        'file' => null,
        'level' => 'debug',
        'type' => 'single', // optional, 可选 daily.
        'max_file' => 30,
    ],
];
